package com.ssl.sslliving.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ssl.common.utils.PageUtils;
import com.ssl.sslliving.commodity.entity.CategoryEntity;
import com.ssl.sslliving.commodity.vo.Catalog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品分类表
 *
 * @author ssl
 * @email ssl@gmail.com
 * @date 2022-11-09 19:50:49
 */
public interface CategoryService extends IService<CategoryEntity> {

    List<CategoryEntity> listTree();

    PageUtils queryPage(Map<String, Object> params);

    Long[] getCascadedCategoryId(Long categoryId);

    List<CategoryEntity> getLevel1Categories();

    Map<String, List<Catalog2Vo>> getCatalogJson();
}

